﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NetDisk_WebService
{
    public interface IUniValidate
    {
        /// <summary>
        /// 没有错误{'code':'0','msg':'没有错误'}
        /// </summary>
        /// <param name="message"></param>
        /// <param name="jsonMsg">json的具体返回的数据</param>
        /// <returns></returns>
        string NoError(string jsonDataMsg = "");
        /// <summary>
        /// 不支持此接口
        /// </summary>
        /// <returns></returns>
        string UnsupportedOpenApi(string message = "{'code':'3','msg':'不支持此接口 '}");
        /// <summary>
        /// 没有权限执行此操作
        /// </summary>
        /// <returns></returns>
        string NoPermissionToDoThisOperation(string message = "{'code':'4','msg':'没有权限执行此操作 '}");
        /// <summary>
        /// IP未授权
        /// </summary>
        /// <returns></returns>
        string UnauthorizedClientIPAddress(string message = "{'code':'5','msg':'IP未授权'}");
        /// <summary>
        /// 数据库查询错误
        /// </summary>
        /// <returns></returns>
        string DbQueryError(string message = "{'code':'31001','msg':'数据库查询错误'}");
        /// <summary>
        /// 数据库连接错误
        /// </summary>
        /// <returns></returns>
        string DbConnectError(string message = "{'code':'31002','msg':'数据库连接错误'}");

        /// <summary>
        /// 数据库返回空结果
        /// </summary>
        /// <returns></returns>
        string DbResultSetIsEmpty(string message = "{'code':'31003','msg':'数据库返回空结果'}");
        /// <summary>
        /// 网络错误
        /// </summary>
        /// <returns></returns>
        string NetworkError(string message = "{'code':'31021','msg':'网络错误'}");
        /// <summary>
        /// 暂时无法连接服务器
        /// </summary>
        /// <returns></returns>
        string CanNotAccessServer(string message = "{'code':'31022','msg':'暂时无法连接服务器'}");
        /// <summary>
        /// 输入参数错误
        /// </summary>
        /// <param name="message"></param>
        /// <returns></returns>
        string ParamError(string message = "{'code':'31023','msg':'输入参数错误'}");
        /// <summary>
        /// app id为空
        /// </summary>
        /// <returns></returns>
        string AppIdIsEmpty(string message = "{'code':'31024','msg':'app id为空'}");

        /// <summary>
        /// 后端存储错误
        /// </summary>
        /// <param name="message"></param>
        /// <returns></returns>
        string BcsError(string message = "{'code':'31025','msg':'后端存储错误'}");

        /// <summary>
        /// 用户的cookie不是合法的网盘cookie
        /// </summary>
        /// <param name="message"></param>
        /// <returns></returns>
        string WPUssussIsInvalid(string message = "{'code':'31041','msg':'用户的cookie不是合法的网盘cookie'}");

        /// <summary>
        /// 用户未登陆
        /// </summary>
        /// <returns></returns>
        string UserIsNotLogin(string message = "{'code':'31042','msg':'用户未登陆'}");
        /// <summary>
        /// 用户未激活
        /// </summary>
        /// <returns></returns>
        string UserIsNotActive(string message = "{'code':'31043','msg':'用户未激活'}");
        /// <summary>
        /// 用户未授权
        /// </summary>
        /// <returns></returns>
        string UserIsNotAuthorized(string message = "{'code':'31044','msg':'用户未授权'}");

        /// <summary>
        /// 用户不存在
        /// </summary>
        /// <returns></returns>
        string UserNotExists(string message = "{'code':'31045','msg':'用户不存在'}");
        /// <summary>
        /// 用户已经存在
        /// </summary>
        /// <returns></returns>
        string UserAlreadyExists(string message = "{'code':'31046','msg':'用户已经存在'}");
        /// <summary>
        /// 密码错误
        /// </summary>
        /// <returns></returns>
        string UserPasswordError(string message = "{'code':'31047','msg':'密码错误'}");

        /// <summary>
        /// 文件已经存在
        /// </summary>
        /// <returns></returns>
        string FileAlreadyExists(string message = "{'code':'31061','msg':'文件已经存在'}");

        /// <summary>
        /// 文件名非法
        /// </summary>
        /// <returns></returns>
        string FileNameIsInvalid(string message = "{'code':'31062','msg':'文件名非法'}");
        /// <summary>
        /// 文件父目录不存在
        /// </summary>
        /// <returns></returns>
        string FileParentPathDoesNotExist(string message = "{'code':'31063','msg':'文件父目录不存在'}");
        /// <summary>
        /// 无权访问此文件
        /// </summary>
        /// <returns></returns>
        string FileIsNotAuthorized(string message = "{'code':'31064','msg':'无权访问此文件'}");
        /// <summary>
        /// 目录已满
        /// </summary>
        /// <returns></returns>
        string DirectoryIsFull(string message = "{'code':'31065','msg':'目录已满'}");
        /// <summary>
        /// 文件不存在
        /// </summary>
        /// <returns></returns>
        string FileDoesNotExist(string message = "{'code':'31066','msg':'文件不存在'}");
        /// <summary>
        /// 文件处理出错
        /// </summary>
        /// <returns></returns>
        string FileDealFailed(string message = "{'code':'31067','msg':'文件处理出错'}");
        /// <summary>
        /// 文件创建失败
        /// </summary>
        /// <returns></returns>
        string FileCreateFailed(string message = "{'code':'31068','msg':'文件创建失败'}");
        /// <summary>
        /// 文件拷贝失败
        /// </summary>
        /// <returns></returns>
        string FileCopyFailed(string message = "{'code':'31069','msg':'文件拷贝失败'}");
        /// <summary>
        /// 文件删除失败
        /// </summary>
        /// <returns></returns>
        string FileDeleteFailed(string message = "{'code':'31070','msg':'文件删除失败'}");
        /// <summary>
        /// 不能读取文件元信息
        /// </summary>
        /// <returns></returns>
        string GetFileMetaFailed(string message = "{'code':'31071','msg':'不能读取文件元信息'}");
        /// <summary>
        /// 文件移动失败
        /// </summary>
        /// <returns></returns>
        string FileMoveFailed(string message = "{'code':'31072','msg':'文件移动失败'}");
        /// <summary>
        /// 文件重命名失败
        /// </summary>
        /// <returns></returns>
        string FileRenameFailed(string message = "{'code':'31073','msg':'文件重命名失败'}");
        /// <summary>
        /// 未授权设置此目录配额
        /// </summary>
        /// <returns></returns>
        string AccessDeniedToSetQuota(string message = "{'code':'31110','msg':'未授权设置此目录配额'}");
        /// <summary>
        /// 未授权设置此目录配额
        /// </summary>
        /// <returns></returns>
        string AuotaOnlySopport2LevelDirectories(string message = "{'code':'31111','msg':'配额管理只支持两级目录'}");
        /// <summary>
        /// 超出配额
        /// </summary>
        /// <returns></returns>
        string ExceedQuota(string message = "{'code':'31112','msg':'超出配额'}");
        /// <summary>
        /// 配额不能超出目录祖先的配额
        /// </summary>
        /// <returns></returns>
        string TheQuotaIsBiggerThanOneOfItsParentDirectorys(string message = "{'code':'31113','msg':'配额不能超出目录祖先的配额'}");
        /// <summary>
        /// 配额不能超出目录祖先的配额
        /// </summary>
        /// <returns></returns>
        string TheQuotaIsSmallerThanOneOfItsSubDirectorys(string message = "{'code':'31114','msg':'配额不能比子目录配额小'}");
        /// <summary>
        /// 请求缩略图服务失败
        /// </summary>
        /// <returns></returns>
        string ThumbnailTailedInternalError(string message = "{'code':'31141','msg':'请求缩略图服务失败'}");
        /// <summary>
        /// Access Token不正确或者已经过期
        /// </summary>
        /// <returns></returns>
        string AccessTokenInvalidOrNoLongerValid(string message = "{'code':'110','msg':'Access Token不正确或者已经过期'}");

        /// <summary>
        /// 签名错误
        /// </summary>
        /// <returns></returns>
        string SignatureError(string message = "{'code':'31201','msg':'签名错误'}");
        /// <summary>
        /// 未找到文件MD5，请使用上传API上传整个文件
        /// </summary>
        /// <returns></returns>
        string FileMd5NotFound(string message = "{'code':'31079','msg':'未找到文件MD5，请使用上传API上传整个文件'}");
        /// <summary>
        /// 服务器错误
        /// </summary>
        /// <returns></returns>
        string ServerInternalError(string message = "{'code':'31209','msg':'服务器错误'}");
        /// <summary>
        /// 服务器不支持
        /// </summary>
        /// <returns></returns>
        string NotImplement(string message = "{'code':'31210','msg':'服务器不支持'}");
        /// <summary>
        /// 禁止访问
        /// </summary>
        /// <returns></returns>
        string AccessDenied(string message = "{'code':'31211','msg':'禁止访问'}");
        /// <summary>
        /// 服务不可用
        /// </summary>
        /// <returns></returns>
        string ServiceUnavailable(string message = "{'code':'31213','msg':'服务不可用'}");
        /// <summary>
        /// 容量超出限额
        /// </summary>
        /// <returns></returns>
        string StorageExceedLimit(string message = "{'code':'31218','msg':'容量超出限额'}");
        /// <summary>
        /// 请求数超出限额
        /// </summary>
        /// <returns></returns>
        string RequestExceedLimit(string message = "{'code':'31219','msg':'请求数超出限额'}");
        /// <summary>
        /// 流量超出限额
        /// </summary>
        /// <returns></returns>
        string TransferExceedLimit(string message = "{'code':'31220','msg':'流量超出限额'}");
        /// <summary>
        /// 流量超出限额
        /// </summary>
        /// <returns></returns>
        string DirectorCanNotCopyLimit(string message = "{'code':'31221','msg':'文件夹不做复制功能'}");
       
    }
}
